#pragma once
#include "vector3.h"
#include "quaternion.h"

class State
{
public:
	State(void);
	State(vector3 ip, vector3 iv);
	~State(void);

	double mass;
	double invMass;
	double inertia;
	double invInertia;

	vector3 position;
	vector3 momentum;

	quaternion orientation;
	vector3 angularMomentum;

	vector3 velocity;
	quaternion spin;
	vector3 angularVelocity;

	vector3 force;
	vector3 torque;

	double fDamp;
	double tDamp;

	void Recalculate();
};

